import requests
import json

# BPM接口
#url = 'http://192.168.120.12:8010/Portal/WebServices/BPMServicePort.asmx?op=StartWorkflow_CgPrePay'

#思创ERP接口
url = 'http://192.168.0.32/wstopprd/ws/r/awsp920'

headers = {'Content-Type': "application/x-www-form-urlencoded"}

data = [
{"ItemName":"Code","ItemValue":"Administrator"},
{"ItemName":"apeadocno","ItemValue":"100-20-190601"}
]

json_data={
    "key": "f5458f5c0f9022db743a7c0710145903",
    "type": "sync",
    "host": {
        "prod": "MES",
        "ip": "10.30.12.103",
        "lang": "zh_CN",
        "acct": "tiptop",
        "timestamp": "20151211123204361"
    },
    "service": {
        "prod": "T100",
        "name": "ruku.split", 			        #ERP服务名 到时候会给
        "ip": "10.30.12.103", 					#IP给不给都行
        "id": "topprd"
    },
    "datakey": {
        "EntId": "18", 							#公司代号	18
        "CompanyId": "SYWX"						#营运据点  SYWX
    },
    "payload": {

        "std_data": {
            "parameter": {

             "jobid": "12245"					#中间表的jobid 唯一ID

            }
        }
    }
}


response = requests.request("POST", url=url,data=json_data)
print(response)